<?php include('_tpl_header.php'); ?>
<div class="box">
<div class="left">
<div class="leftad">
  <div><img src="/data/images/lefttop.gif" width="232" height="15" /></div>
  <div style="padding:10px"><?php echo $L['intro_productorder']; ?></div>
  <div><img src="/data/images/leftbottom.gif" width="232" height="14" /></div>
</div>
</div>
<div class="right">
  <div><img src="/data/images/righttop01.gif" width="724" height="18" /></div>
  <div class="box2">
  <?php
$n = count($orders);
if($n > 0)
{ 
    $i = 0;
    
    foreach ($orders as $order){ 
        
        if(!empty($order)){ 
            $row = $products[$order['pid']];
?>
    <div class="box3">
      <ul>
        <li style="height:210px;vertical-align:middles;"><table border="0" cellspacing="0" height="210" style="margin:0 auto;"><tr><td valign="middle" style="text-align:center;"><a href="<?php echo $row['product_url']; ?>"><img src="<?php echo $row['cover_url'] ?>" /></a></td></tr></table></li>
        <li class="box3bottom" style="padding-right:10px"><a href="<?php echo $row['product_url']; ?>" class="white2"><b><?php echo $row['sn']?></b>&nbsp;&nbsp;&nbsp;(<?php echo $row['width']."*".$row['deep']."*".$row['height'] ?>)</a></li>
      </ul>
    </div>
<?php
        }else {
?>
    <div></div>
<?php
        }
        $i++;
        if($i!=0 && $i%3==0){
?>
        <div class="clear"></div>
<?php
        }
    }
}else{
?>
<br/>
<br/>
<br/>
<br/>
<div align="center"><?php echo $L['pOrderedNone']; ?></div>
<br/>
<br/>
<br/>
<br/>
<?php } ?>
  </div>
  <div><img src="/data/images/rightbottom01.gif" width="724" height="13" /></div>
</div>
<div class="clear"></div>
<div><img src="/data/images/bottom.gif" width="1001" height="19" /></div>
</div>
<?php include('_tpl_footer.php'); ?>